part of 'login_bloc.dart';

class LoginState extends Equatable {
  final String userAccount;
  final String userPsw;
  final User user;

  LoginState({this.userAccount, this.userPsw, this.user});

  @override
  List<Object> get props => [userAccount, userPsw,user];

  copyWith({String account, String psw,User user,bool isLoading}) {
    return LoginState(
        userAccount: account ?? this.userAccount,
        userPsw: psw ?? this.userPsw,
        user: user ?? this.user);
  }
}

class LoginInitial extends LoginState {
  LoginInitial(String userName, String userPsw,User user)
      : super(userAccount: userName, userPsw: userPsw,user: user);

  @override
  List<Object> get props => [];
}
